package com.attendance.www.hr.service.impl;


import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.attendance.www.hr.dao.mapper.RequestInterfaceTaskMapper;
import com.attendance.www.hr.entitys.RequestInterfaceTask;
import com.attendance.www.hr.service.IRequestInterfaceTaskService;
@Service
public class RequestInterfaceTaskImpl implements IRequestInterfaceTaskService{

	@Resource
	private RequestInterfaceTaskMapper requestInterfaceTaskDao;
	
	/**
	 * 新增
	 * @param requestInterfaceTask
	 * @return
	 */
	@Override
	public Integer saveRequestInterfaceTask(RequestInterfaceTask requestInterfaceTask) {
		requestInterfaceTaskDao.insertSelective(requestInterfaceTask);
		return requestInterfaceTask.getRitId();
	}

	/**
	 * 修改
	 * @param requestInterfaceTask
	 * @return
	 */
	@Override
	public boolean updataRequestInterfaceTask(RequestInterfaceTask requestInterfaceTask) {
		int record= requestInterfaceTaskDao.updateByPrimaryKeySelective(requestInterfaceTask);
		if(record>0) {
			return true;
		}
		return false;
	}

}
